package com.ssm.subject.infra.basic.mapper;

import com.ssm.subject.infra.basic.entity.SubjectLiked;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (SubjectLiked)表数据库访问层
 *
 * @author makejava
 * @since 2025-01-22 19:55:41
 */
public interface SubjectLikedDao {

    /**
     * 批量新增
     * @param subjectLikedList
     * @return
     */
    int batchInsertOrUpdate(@Param("entities") List<SubjectLiked> subjectLikedList);

    /**
     * 查询满足条件的数量
     * @param subjectLiked
     * @return
     */
    int countByCondition(SubjectLiked subjectLiked);

    /**
     * 分页查询
     * @param subjectLiked
     * @param start
     * @param pageSize
     * @return
     */
    List<SubjectLiked> queryPage(@Param("subjectLiked")SubjectLiked subjectLiked,
                                 @Param("start")int start,
                                 @Param("pageSize") Integer pageSize);
}

